package astnode;

import common.TokenType;

public class DeclarationNode extends ASTNode{
	private TokenType type = TokenType.ENDFILE;
	private int identifier = -1;
//	private int decNum = -1;
	
	public DeclarationNode( int lineNum ) { super(lineNum);	}
	
	public DeclarationNode ( DeclarationNode node ){
		super( node.getLineNum() );
		this.setType(node.getType());
		this.setIdentifier(node.getIdentifier());
	}
	
	public int getIdentifier() {
		return identifier;
	}

	public void setIdentifier(int identifier) {
		this.identifier = identifier;
	} 
	
	@Override
	public String toString(){
		return "DeclarationNode";
	}

	public TokenType getType() {
		return type;
	}

	public void setType(TokenType type) {
		this.type = type;
	}
}
